home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / SgIconGadget.z / SgIconGadget
Text File  |  1998-10-30  |  21KB  |  331 lines

  1.  
  2.  
  3.  
  4.      SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt ---- tttthhhheeee IIIIccccoooonnnn wwwwiiiiddddggggeeeetttt ccccllllaaaassssssss....
  10.  
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////IIIIccccoooonnnnGGGG....hhhh>>>>
  14.  
  15.  
  16.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  17.           This page documents the version of Sgm that accompanies
  18.           Motif 2.1.
  19.  
  20.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.           SgIconGadget is an instantiable gadget that displays a
  22.           labeled pixmap.  The SgIconGadget widget does not accept any
  23.           button or key input, and the help callback is the only
  24.           callback defined.  SgIconGadget also receives enter and
  25.           leave events. The SgIconGadget is unique in that it can be
  26.           displayed in colors other than that provided by its parent,
  27.           a restriction that limits the usefulness of gadgets in many
  28.           situation.
  29.  
  30.           SgIconGadget can contain both text and a pixmap.
  31.           SgIconGadget text is a compound string.  Refer to the _O_S_F/
  32.           _M_o_t_i_f _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e for more information on compound
  33.           strings.  The text can be multidirectional, multiline,
  34.           and/or multifont.  When a SgIconGadget is insensitive, its
  35.           text is stippled, or the user-supplied insensitive pixmap is
  36.           displayed.
  37.  
  38.         CCCCllllaaaasssssssseeeessss
  39.           SgIconGadget inherits behavior and resources from XXXXmmmmGGGGaaaaddddggggeeeetttt.
  40.  
  41.           The class pointer is SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeettttCCCCllllaaaassssssss.
  42.  
  43.           The class name is SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt.
  44.  
  45.  
  46.         NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
  47.           The following table defines a set of widget resources used
  48.           by the programmer to specify data.  The programmer can also
  49.           set the resource values for the inherited classes to set
  50.           attributes for this widget.  To reference a resource by name
  51.           or by class in a .Xdefaults file, remove the XXXXmmmmNNNN or XXXXmmmmCCCC
  52.           prefix and use the remaining letters.  To specify one of the
  53.           defined values for a resource in a .Xdefaults file, remove
  54.           the XXXXmmmm prefix and use the remaining letters (in either
  55.           lowercase or uppercase, but include any underscores between
  56.           words).  The codes in the access column indicate if the
  57.           given resource can be set at creation time (CCCC), set by using
  58.           XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss (SSSS), retrieved by using XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss (GGGG), or is
  59.           not applicable (NNNN////AAAA).
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                                                 SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  75.      NNNNaaaammmmeeee                        CCCCllllaaaassssssss                              TTTTyyyyppppeeee                DDDDeeeeffffaaaauuuulllltttt                AAAAcccccccceeeessssssss
  76.      ________________________________________________________________________________________________________________
  77.      XmNfontList                 XmCFontList                        XmFontList          NULL                   CSG
  78.      XmNlabelInsensitivePixmap   XmCSgIconGadgetInsensitivePixmap   Pixmap              XmUNSPECIFIED_PIXMAP   CSG
  79.      XmNlabelPixmap              XmCPixmap                          Pixmap              XmUNSPECIFIED_PIXMAP   CSG
  80.      XmNlabelString              XmCXmString                        XmString            NULL                   CSG
  81.      XmNmarginBottom             XmCMarginBottom                    Dimension           0                      CSG
  82.      XmNmarginHeight             XmCMarginHeight                    Dimension           2                      CSG
  83.      XmNmarginLeft               XmCMarginLeft                      Dimension           0                      CSG
  84.      XmNmarginRight              XmCMarginRight                     Dimension           0                      CSG
  85.      XmNmarginTop                XmCMarginTop                       Dimension           0                      CSG
  86.      XmNmarginWidth              XmCMarginWidth                     Dimension           2                      CSG
  87.      XmNspacing                  XmCSpacing                         Dimension           10                     CSG
  88.      XmNrecomputeSize            XmCRecomputeSize                   Boolean             True                   CSG
  89.      XmNstringDirection          XmCStringDirection                 XmStringDirection
  90.      XmNtopShadowColor           XmCTopShadow                       Pixel               dynamic                CSG
  91.      XmNbottomShadowColor        XmCBottomShadow                    Pixel               dynamic                CSG
  92.      XmNbackground               XmCBackground                      Pixel               dynamic                CSG
  93.      XmNforeground               XmCForeground                      Pixel               dynamic                CSG
  94.      XmNiconPlacement            XmCIconPlacement                   XmRIconPlacement    icon_right             csg
  95.      XmNpixmapWidth              XmCWidth                           Dimension           16                     CSG
  96.      XmNpixmapHeight             XmCHeight                          Dimension           16                     CSG
  97.      XmNshadowType               XmCShadowType                      XmRShadowType       XmSHADOW_ETCHED_IN     csg
  98.  
  99.  
  100.           XXXXmmmmNNNNffffoooonnnnttttLLLLiiiisssstttt
  101.                Specifies the font of the text used in the widget.  If
  102.                this value is NULL at initialization, it is initialized
  103.                by looking up the parent hierarchy of the widget for an
  104.                ancestor that is a subclass of the XmBulletinBoard,
  105.                VendorShell, or XmMenuShell widget class.  If such an
  106.                ancestor is found, the font list is initialized to the
  107.                appropriate default font list of the ancestor widget
  108.                (XmNdefaultFontList for VendorShell and XmMenuShell,
  109.                XmNlabelFontList or XmNbuttonFontList for
  110.                XmBulletinBoard).  Refer to XXXXmmmmFFFFoooonnnnttttLLLLiiiissssttttCCCCrrrreeeeaaaatttteeee((((3333XXXX)))) for
  111.                more information on the creation and structure of a
  112.                font list.
  113.  
  114.           XXXXmmmmNNNNllllaaaabbbbeeeellllIIIInnnnsssseeeennnnssssiiiittttiiiivvvveeeePPPPiiiixxxxmmmmaaaapppp
  115.                Specifies a pixmap used as the button face if
  116.                XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee is XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP and the button is insensitive.
  117.  
  118.           XXXXmmmmNNNNllllaaaabbbbeeeellllPPPPiiiixxxxmmmmaaaapppp
  119.                Specifies the optional pixmap displayed.  XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP.
  120.  
  121.           XXXXmmmmNNNNllllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg
  122.                Specifies the compound string displayed.  Refer to
  123.                XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeee((((3333XXXX)))) or XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeeeLLLLttttooooRRRR((((3333XXXX)))) for more
  124.                information on the creation and structure of compound
  125.                strings.
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))
  137.  
  138.  
  139.  
  140.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm
  141.                Specifies the amount of spacing that is to be left
  142.                after the bottom margin (XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt) of the
  143.                widget, before the label is drawn.
  144.  
  145.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt
  146.                Specifies the amount of blank space between the bottom
  147.                edge of the top shadow and the label, and the top edge
  148.                of the bottom shadow and the label.
  149.  
  150.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt
  151.                Specifies the amount of spacing that is to be left
  152.                after the left margin (XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh) of the widget
  153.                before the label is drawn.  This may be modified by
  154.                SgIconGadget's subclasses.
  155.  
  156.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt
  157.                Specifies the amount of spacing that is to be left
  158.                after the right margin (XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh) of the widget
  159.                before the label is drawn.
  160.  
  161.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp
  162.                Specifies the amount of spacing that is to be left
  163.                after the top margin (XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt) of the widget
  164.                before the label is drawn.
  165.  
  166.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh
  167.                Specifies the amount of blank space between the right
  168.                edge of the left shadow and the label, and the left
  169.                edge of the right shadow and the label.
  170.  
  171.           XXXXmmmmNNNNssssppppaaaacccciiiinnnngggg
  172.                Specifies the amount of blank space between the  label
  173.                and the pixmap.
  174.  
  175.           XXXXmmmmNNNNrrrreeeeccccoooommmmppppuuuutttteeeeSSSSiiiizzzzeeee
  176.                Specifies a Boolean value that indicates whether the
  177.                widget attempts to be big enough to contain the label.
  178.                If True, an XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss with a new label string or
  179.                pixmap, margins, font, or label type causes the widget
  180.                to shrink or expand to exactly fit the new label string
  181.                or pixmap.  If False, the widget never attempts to
  182.                change size on its own.
  183.  
  184.           XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn
  185.                Specifies the direction in which the string is to be
  186.                drawn.  The following are the values:
  187.  
  188.           +o  XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____LLLL____TTTTOOOO____RRRR - left to right
  189.  
  190.           +o  XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____RRRR____TTTTOOOO____LLLL - right to left
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                         (printed 10/24/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))
  203.  
  204.  
  205.  
  206.           The value of this resource is determined at creation time.
  207.           If the widget's parent is a manager, this value is inherited
  208.           from the widget's parent, otherwise it is set to
  209.           XmSTRING_DIRECTION_L_TO_R.
  210.  
  211.  
  212.         IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
  213.           SgIconGadget inherits behavior and resources from the
  214.           following superclasses.  For a complete description of each
  215.           resource, refer to the man page for that superclass.
  216.  
  217.                                    XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  218.      NNNNaaaammmmeeee                    CCCCllllaaaassssssss                   TTTTyyyyppppeeee               DDDDeeeeffffaaaauuuulllltttt    AAAAcccccccceeeessssssss
  219.      ____________________________________________________________________________________
  220.      XmNhelpCallback         XmCCallback             XtCallbackList     NULL       C
  221.      XmNhighlightColor       XmCForeground           Pixel              Black      CSG
  222.      XmNhighlightOnEnter     XmCHighlightOnEnter     Boolean            False      CSG
  223.      XmNhighlightPixmap      XmCHighlightPixmap      Pixmap             dynamic    CSG
  224.      XmNhighlightThickness   XmCHighlightThickness   Dimension          2          CSG
  225.      XmNnavigationType       XmCNavigationType       XmNavigationType   XmNONE     G
  226.      XmNtraversalOn          XmCTraversalOn          Boolean            False      CSG
  227.      XmNunitType             XmCUnitType             unsigned char      XmPIXELS   CSG
  228.      XmNuserData             XmCUserData             caddr_t            NULL       CSG
  229.  
  230.                                                  CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  231.      NNNNaaaammmmeeee                            CCCCllllaaaassssssss                           TTTTyyyyppppeeee             DDDDeeeeffffaaaauuuulllltttt            AAAAcccccccceeeessssssss
  232.      __________________________________________________________________________________________________________
  233.      XmNancestorSensitive            XmCSensitive                    Boolean          dynamic            G
  234.      XmNcolormap                     XmCColormap                     Colormap         XtCopyFromParent   CG
  235.      XmNdepth                        XmCDepth                        int              XtCopyFromParent   CG
  236.      XmNdestroyCallback              XmCCallback                     XtCallbackList   NULL               C
  237.      XmNheight                       XmCHeight                       Dimension        dynamic            CSG
  238.      XmNinitialResourcesPersistent   XmCInitialResourcesPersistent   Boolean          True               CG
  239.      XmNmappedWhenManaged            XmCMappedWhenManaged            Boolean          True               CSG
  240.      XmNscreen                       XmCScreen                       Pointer          XtCopyScreen       CG
  241.      XmNsensitive                    XmCSensitive                    Boolean          True               CSG
  242.      XmNtranslations                 XmCTranslations                 XtTranslations   NULL               CSG
  243.      XmNwidth                        XmCWidth                        Dimension        dynamic            CSG
  244.      XmNx                            XmCPosition                     Position         0                  CSG
  245.      XmNy                            XmCPosition                     Position         0                  CSG
  246.  
  247.  
  248.         CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
  249.           The following structure is returned with each callback:
  250.  
  251.           ttttyyyyppppeeeeddddeeeeffff ssssttttrrrruuuucccctttt
  252.           {
  253.             iiiinnnntttt          _r_e_a_s_o_n;
  254.             XXXXEEEEvvvveeeennnntttt       * _e_v_e_n_t;;;;
  255.           }}}} XXXXmmmmAAAAnnnnyyyyCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt;;;;
  256.  
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                                         (printed 10/24/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          SSSSggggIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX))))
  269.  
  270.  
  271.  
  272.           _r_e_a_s_o_n Indicates why the callback was invoked.  For this
  273.                  callback, _r_e_a_s_o_n is set to XXXXmmmmCCCCRRRR____HHHHEEEELLLLPPPP.
  274.  
  275.           _e_v_e_n_t  Points to the XXXXEEEEvvvveeeennnntttt that triggered the callback.
  276.  
  277.  
  278.         TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
  279.           SgIconGadget includes translations from Primitive.  The
  280.           SgIconGadget translations are listed below.  These
  281.           translations may not directly correspond to a translation
  282.           table.
  283.           KKKKHHHHeeeellllpppp::::         HHHHeeeellllpppp(((())))
  284.  
  285.         AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
  286.           The SgIconGadget action routines are described below:
  287.  
  288.           HHHHeeeellllpppp(((()))):
  289.                Calls the callbacks for XXXXmmmmNNNNHHHHeeeellllppppCCCCaaaallllllllbbbbaaaacccckkkk if any exist.
  290.                If there are no help callbacks for this widget, this
  291.                action calls the help callbacks for the nearest
  292.                ancestor that has them.
  293.  
  294.  
  295.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  296.           CCCCoooorrrreeee((((3333XXXX)))), SSSSggggCCCCrrrreeeeaaaatttteeeeIIIIccccoooonnnnGGGGaaaaddddggggeeeetttt((((3333XXXX)))), XXXXmmmmFFFFoooonnnnttttLLLLiiiissssttttCCCCrrrreeeeaaaatttteeee((((3333XXXX)))),
  297.           XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeee((((3333XXXX)))), XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeeeLLLLttttooooRRRR((((3333XXXX)))) and XXXXmmmmGGGGaaaaddddggggeeeetttt((((3333XXXX)))).
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                                         (printed 10/24/98)
  328.  
  329.  
  330.  
  331.